The places GBML is honest about running on real GBA hardware instead of hiding it behind an abstraction.
These all work, and all show up somewhere in real code - none of them are edge cases. Each one is a direct, honest consequence of what a Game Boy Advance actually is: a fixed-point CPU with no floating point unit, sprite hardware with a limited number of sort layers and palette banks, and a screen whose Y coordinate counts down from the top rather than up from the bottom. GBML does not hide any of this behind a false promise of unlimited precision or unlimited layers - it gives you the real thing, documented plainly, so nothing here should ever come as a surprise mid-project.
A real (Variables, types and scope) covers roughly ±524,288 in steps of 1/4096 - a genuinely huge range and fine enough precision for essentially every gameplay number a 2D game needs, but not the same thing as a float. A value that grows past that range overflows; a fraction finer than 1/4096 rounds to the nearest step it can represent, the same way any fixed-point format does. In practice this is never visible in ordinary position/speed/timer arithmetic - it starts to matter only if you are accumulating a very large number of very small fractional additions and expecting bit-for-bit floating-point behavior.
Multiplying two real values is coarser than that. To stop the answer overflowing, the machine first cuts each of the two numbers down to steps of 1/64, and only then multiplies. So 100 * 0.1 is 9.375, not 10 (0.1 is only 6 of those coarser steps), and lerp(a, b, 0.1) really blends by 0.09375. A whole number on the right is spared: x * 2 is exact, but 2 * x is not, because a whole number on the left is treated as a real. Numbers has the details and the habits that avoid it.
The precision that does catch people out is not the machine's, it is the type's: / between two int values is a whole-number divide, so timer / 40 is 0 for thirty-nine frames and 1 on the fortieth, and an interpolation written that way snaps instead of easing. The fix is one character (40.0), the compiler warns about the clearest cases, and div is how you say you wanted whole-number division on purpose - see Expressions and statements.
Zero degrees points along +x (East, to the right), and because the screen's Y coordinate increases downward, an increasing angle turns counter-clockwise on screen - the opposite of what "clockwise = positive" intuition from a normal maths class would suggest, and exactly the reverse of what most non-screen contexts assume:


Angle values themselves come from a lookup table rather than a general trigonometric computation, accurate to about a tenth of a degree - close enough that nothing built with it reads as anything other than smooth, but not bit-exact the way a full trig library would be.
The same fixed-point, y-down arithmetic is what a direction and a distance between two points are built from:


"Random" means the engine's own pseudo-random generator, not your platform's. A sequence of random values is reproducible given the same seed and the same sequence of calls - useful to know if you ever want a run to be replayable, and a reason two rooms that both "randomly" pick something on the same frame are drawing from the same single stream, not two independent ones.
instance_destroy() waits for the end of the frameCalling it runs nothing yet: it only marks the instance. The instance finishes the current frame as if nothing had happened - the lines after the call run, and other instances still find it. At the end of the frame, once the frame has been shown, its Destroy event runs and the instance is removed. Objects and instances covers why: it is what keeps a loop over instances safe to destroy from while it is still running.
An object with no Draw event at all draws its own sprite, frame, scale, angle and flips for free
with a per-frame cache keyed by where it was called from: one that draws the exact same thing every single frame costs about as little as no Draw event at all, while one that genuinely draws something different every frame costs a real sprite for that difference. The cost follows what the event actually does, not whether you wrote one.
There is exactly one hardware blend setting active for the whole screen at a time, not one per sprite - which is why an instance has no opacity or blend variable of its own: two sprites cannot each have their own see-through amount. A see-through look is drawn into the sprite art, or it is a screen-wide effect such as a room transition. Color effects such as a palette swap or a flash apply to a whole 16-colour palette bank at once, never to a single sprite's colors in isolation from everything else sharing that bank.
depth (Objects and instances) is a plain number you set, but the hardware only has a small number of actual sort layers to place things on - so nearby depth values collapse onto the same band, and instances that land in the same band draw in creation order relative to each other rather than by their exact depth value:


Two instances one apart in depth very likely land in the same band and simply draw in creation order; two instances far enough apart land in different bands and always draw in band order. The editor shows which band a given depth value actually falls in, rather than leaving you to guess from the raw number.
The same tie-break also decides the order between two of one instance's own drawings, not just between different instances. Draw Begin draws at this instance's own bg_priority/depth by default, and so does that instance's own sprite when it draws automatically (an object with no Draw event of its own - see that page for when it isn't automatic) - so a shadow drawn in Draw Begin and that default sprite land in the same band and are ordered by creation order, not by which event drew them - see either page for the worked example.
Whatever a sprite looks like, its collision mask is a rectangle - there is no per-pixel collision anywhere in this engine. The bounding-box diagram on Objects and instances shows what that rectangle actually is: box_left/box_right/box_top/box_bottom, in world space, centered on the instance's own x/y.
Because instance memory is reserved up front rather than allocated as instances appear, every object declares the most it may have alive at once - not a suggestion, a real pool size. The editor turns what a room actually places into an estimate against the hardware's real ceilings, but code that creates an instance at runtime spends the same budget without ever being placed for the editor to count. See Budgets for the rest of what the hardware actually limits, what the editor's estimate can and cannot see, and where to check the true number instead.
If a hundred instances all run the same Step event this frame, they run in the order they were created - deterministically, every single time, never in an arbitrary or varying order. This is worth relying on: a rule that depends on "whoever runs first" is safe to write in GBML precisely because "whoever runs first" is a fixed, repeatable answer, not a race.